import random


def generate_place_data(n):
	ids = [1,5,7,11,12]

	data = []

	for i in range(n):
		item = {
			"id": random.choice(ids),
			"price": random_price(),
			"amount": random.randint(1,100)
		}
		data.append(item)

	return data

def random_price():
    r = random.random()
    if r < 0.2:
        return random.randint(3000, 4000)
    elif r < 0.5:
        return random.randint(4001, 6000)
    else:
        return random.randint(6001, 100000000)